package com.rjpacket.MyUEnjoy.fragments;


import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import com.rjpacket.MyUEnjoy.FirstMainActivity;
import com.rjpacket.MyUEnjoy.MainActivity;
import com.rjpacket.MyUEnjoy.R;

/**
 * Created by aaa on 15-1-23.
 */
public class LastFragment extends Fragment implements View.OnClickListener {
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        View view = inflater.inflate(R.layout.last_fragment, container, false);
        ImageView imageView = (ImageView) view.findViewById(R.id.image_start);
        imageView.setOnClickListener(this);

        return view;
    }

    @Override
    public void onClick(View v) {
        Intent intent = new Intent(getActivity(), FirstMainActivity.class);
        startActivity(intent);
        getActivity().finish();
    }
}